<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:head>
<title>Sistema JSF PrimeFaces</title>
<h:outputScript library="javax.faces" name="jsf.js" target="head" />
<h:outputStylesheet library="css" name="test.css"/>
<style>
.ui-panel .ui-panel-footer {
border-width: 1px 0 0;
margin: 0.5em 0 0;
padding: 0.5em 1em;
text-align: center;
font-size:10px;
font-style:italic;
font-weight:bold;
}
</style>
</h:head>
<h:body>
		<br/>
	<center>
		<p:panel style="font-size:10px; font-style: italic;margin-top: 0px;width: 845px;">
			<p:outputLabel value="Welcome #{LoginMB.login}."><p:commandButton value="SAIR" action="#{MenuMB.menu}" style="margin-left: 86%;"/></p:outputLabel>					
		</p:panel>
		

		<h:form>	
			
			<p:panel footer="Sistema JSF PrimeFaces" header="Opções" style="font-size:10px; font-style: italic;width:845px;margin-top: 0px;" >
				<br/>
					<p:commandButton value="ADICIONAR" id="adicionar" action="#{MenuMB.carregaAdicionar}" icon="ui-icon-plus"/>
					<p:commandButton value="EXIBIR" id="exibir" action="#{ExibeMB.carregaExibir}" icon="ui-icon-note" style="margin-left: 10px;"/>
					<p:commandButton value="PESQUISAR" id="pesquisar" action="#{PesquisaMB.carregaBuscar}" icon="ui-icon ui-icon-search" style="margin-left: 10px;"/>
					<p:commandButton value="EXPORTAR TXT" id="exportar" action="#{MenuMB.geraExportacao}" icon="ui-icon ui-icon-document" style="margin-left: 10px;"/>
					<p:commandButton id="duracao" icon="ui-icon ui-icon-clock" actionListener="#{MenuMB.duracaoTotal}" style="margin-left: 10px;" update="dlog" oncomplete="PF('popup').show()"/>
				<br/><br/>
			</p:panel>
			<p:dialog id="dlog" widgetVar="popup" header="TEMPO TOTAL">
				<p:outputLabel value="DURAÇÃO : #{MenuMB.duracao} MINUTOS."/>
			</p:dialog>
		</h:form>
	</center>
	
</h:body>
</html>